import { Group } from '@/components/pro-panel/index.typing';

const group: Group = {
  title: '标签',
  key: 'label',
  collapsed: false,
  columns: [
    {
      label: '标签内容',
      prop: 'geojsonData.features.0.properties.infoValue',
      type: 'input',
    },
    {
      label: '标签颜色',
      prop: 'geojsonData.features.0.properties.infoFillColor',
      type: 'color-picker',
      span: 12,
    },
    {
      label: '字号',
      prop: 'geojsonData.features.0.properties.infoFont',
      type: 'input',
      span: 12,
    },
    {
      label: '标签偏移',
      type: 'title',
      prop: '',
    },
    {
      label: '',
      prop: 'geojsonData.features.0.properties.infoOffset.0',
      type: 'input-number',
      span: 7,
      formProps: { controlsPosition: 'right' },
    },
    {
      label: '',
      prop: 'geojsonData.features.0.properties.infoOffset.1',
      type: 'input-number',
      span: 7,
      offset: 1,
      formProps: { controlsPosition: 'right' },
    },
    {
      label: '',
      prop: 'geojsonData.features.0.properties.infoOffset.2',
      type: 'input-number',
      span: 7,
      offset: 1,
      formProps: { controlsPosition: 'right' },
    },
    {
      label: '排列方向',
      prop: 'geojsonData.features.0.properties.infoVertical',
      type: 'radio',
      options: [
        {
          label: '横向',
          value: false,
        },
        {
          label: '纵向',
          value: true,
        },
      ],
    },
    {
      label: '跟踪镜头',
      prop: '',
      type: 'switch',
      className: 'labelPositionLeft',
      formProps: { activeText: '开', inactiveText: '关', inlinePrompt: true },
    },
  ],
};

export default group;
